(function () {
    "use strict";
    var app = angular.module("codeVerificationSystem",
        ["common.services",
            "ui.router",
            "ui.mask",
            "ui.bootstrap"]);

    app.config(["$stateProvider",
            "$urlRouterProvider",
            function ($stateProvider, $urlRouterProvider) {
                $urlRouterProvider.otherwise("/");

                $stateProvider
                    .state("home", {
                        url: "/",
                        templateUrl: "app/welcomeView.html"
                    })
                    .state("taskList", {
                        url: "/tasks",
                        templateUrl: "app/tasks/taskListView.html",
                        controller: "TaskListController as vm"
                    });
            }]
    );
}());